Skip to content

feat: add per-side weight input for volume calculations#7

Merged
gricha merged 3 commits intomainfrom
feat/warden-integration
Feb 2, 2026
Merged

feat: add per-side weight input for volume calculations#7
gricha merged 3 commits intomainfrom
feat/warden-integration

Conversation

@gricha
Copy link
Owner

@gricha gricha commented Feb 2, 2026

Summary

  • Adds weightInput field (total | per-side) to Exercise schema so volume calculations correctly double weight for dumbbell exercises (e.g., 50lb curls = 100lb total moved)
  • Tags 6 dumbbell exercises as per-side; all others default to total
  • PRs, E1RM, and progression best-set display remain based on input weight (not doubled) — only volume is affected
  • Exposes --weight-input in exercises add and exercises edit commands, shows value in exercises show
  • Updates warden docs to use npx @sentry/warden and clarifies it only needs to run once before PR creation

Test Plan

  • Volume doubled for per-side exercises (bicep-curl 25lb x 10 = 500lb volume)
  • Volume unchanged for barbell exercises (bench-press 135lb x 10 = 1350lb)
  • PRs use raw input weight, not doubled
  • Progression volume correctly doubled for per-side exercises
  • Default exercises have correct weightInput tags
  • 126 tests passing, warden findings addressed

🤖 Generated with Claude Code

gricha and others added 3 commits February 2, 2026 05:59
Add warden.toml with code-simplifier (getsentry/skills) and find-bugs
(getsentry/warden) triggers. Update validate skill to run warden -v
after tests pass. Address warden findings: extract shared exercise
parsing helper and add schema validation in updateTemplate.
Dumbbell exercises now correctly report total weight moved by applying
a 2x multiplier in volume calculations. PRs and E1RM remain based on
input weight. Adds weightInput field to Exercise schema, tags 6
dumbbell exercises as per-side, and updates CLI commands.
@gricha gricha merged commit 2fe9d35 into main Feb 2, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant